var stColumnsList = new Array();

	  
stColumnsList[0] = {
	header : 'Name',
	dataIndex : 'studentName',
	                
	 flex: 1
};
 
stColumnsList[1] = {
	header : 'Batch',
	dataIndex : 'batch',
	
               
	 flex: 1
}; 
 
stColumnsList[2] = {
	header : 'Admission No',
	dataIndex : 'admNo',
	
               
	 flex: 1
}; 
	

stColumnsList[3] = {
	header : 'Class',
	dataIndex : 'className',
	field : 'textfield',
	flex: 1 
	};
			
stColumnsList[4] = {
	header : 'Roll Number',
	dataIndex : 'rollNo',
	field : 'textfield',
	flex: 1 
	};
			
Ext.define('EUF.view.DuplicateSlip', {
	 extend: 'Ext.panel.Panel',
	alias :'widget.duplicateSlip',
	id: 'duplicateSlip',
	height: '100%',
	width: '100%',
	layout: {
        type: 'vbox'
    },
    
	 initComponent: function() {
        var me = this;
        me.items = [
		
		{
				xtype : 'container',
				layout : 'column',
				//title: 'Duplicate Slip No.',
				height: '25%',
				width: '40%',
				flex: .25,
				margin: '20',
				items : [{
                    xtype: 'textfield',
                    //margin: '10 10 10 10  ',
                    fieldLabel: 'Slip No',
					minWidth: '100',
					labelWidth: 45,
                    columnWidth: .6,
				},
				  {
					  xtype: 'container',
					  columnWidth: .6,
					  margin: '10 0 10 20  ',
					  items: [{
		                    xtype: 'button',
		                    text: 'Show',
							
							minWidth: '60',
							margin: '10 10 10 30  ',
							columnWidth: 0.3	                
						},{
		                    xtype: 'button',
		                    text: 'cancel',
							
							minWidth: '60',
							margin: '10 10 10 20 ',
		                    columnWidth: 0.3
		                }]
				  }
				
				]
		},
		{
			//xtype: 'gridpanel',
			xtype: 'FantaSearchGrid',
			//title : 'Student List',
			hideAddRemove: true,
			id:'StudentList',
			width: '100%',
			flex: 1,
			stripeRows : true,
			//selType : 'cellmodel',
			plugins : [cellEditor],		
			autoScroll:true,
			frame : true,
			store : 'StudentStore',
			columns : stColumnsList,
			 
		}
                
            ]

		me.callParent(arguments);
    },  
	
});
